package cn.cdeden.knowledge.service;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.FilesDistributeSender;
import cn.cdeden.knowledge.domain.dto.FilesDistributeSenderDto;
import cn.cdeden.knowledge.domain.dto.FilesDistributeSenderQueryParam;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface FilesDistributeSenderService extends IService<FilesDistributeSender>{


    List<FilesDistributeSenderDto> getByUserId(Long userId);


    /**
     * 查询数据分页
     * @param query 条件
     * @param pageable 分页参数
     * @return PageInfo<FilesDistributeSenderDto>
     */
    TableDataInfo<FilesDistributeSenderDto> queryAll(FilesDistributeSenderQueryParam query, Pageable pageable);



    int insert(FilesDistributeSenderDto resources);


    boolean updateReceive(Long userId,Integer distributeId);


}
